import request from '../utils/request'


//获取用户课程lession列表
export function getMyLessionList(query: any): any {
  return request({
    url: '/user/getMyLessionList',
    method: 'get',
    params: query,
  })
}

// 删除课程lession
export function deleteLession(data: any): any {
  return request({
    url: '/user/deleteLession',
    method: 'post',
    data,
  })
}

// 保存课程lession
export function saveLession(data: any): any {
  return request({
    url: '/user/saveLession',
    method: 'post',
    data,
  })
}